function init(virtual)
  
  if virtual then return end --do nothing
  
  world.logInfo("script 'replacer' called <----------------------------------------------------------------------------------")
  
  ----here we go indeed
  local position = entity.position()
  local direction = entity.direction()
  local object = entity.configParameter("objectToBePlaced")
  
  entity.smash()
  
  world.placeObject(object, position, direction)
  
end

